<template>
  <div class="app-container">
      <el-form :model="queryParams" ref="queryForm" size="small" :inline="true" v-show="showSearch" label-width="68px">
        <el-form-item label="工程名称" prop="name">
          <el-input
            v-model="queryParams.name"
            placeholder="请输入项目名称"
            clearable
            @keyup.enter.native="handleQuery"
          />
        </el-form-item>
        <el-form-item label="部门" prop="deptId">
          <treeselect v-model="queryParams.deptId" style="width:250px;"
                   :options="deptOptions" :show-count="true" placeholder="请选择部门"/>
        </el-form-item>
        <el-form-item label="项目状态" prop="status">
          <el-select v-model="queryParams.status" placeholder="请选择项目状态" clearable>
            <el-option
              v-for="dict in dict.type.project_status"
              :key="dict.value"
              :label="dict.label"
              :value="dict.value"
            />
          </el-select>
        </el-form-item>
        <el-form-item label="创建时间" prop="dateRange">
          <el-date-picker
            v-model="queryParams.dateRange"
            value-format="yyyy-MM-dd"
            type="daterange"
            range-separator="-"
            start-placeholder="开始日期"
            end-placeholder="结束日期"
          ></el-date-picker>
        </el-form-item>
        <el-form-item>
          <el-button type="primary" icon="el-icon-search" size="mini" @click="handleQuery">搜索</el-button>
          <el-button icon="el-icon-refresh" size="mini" @click="resetQuery">重置</el-button>
        </el-form-item>
      </el-form>

      <TableCard>
        <el-row :gutter="10" class="mb8">
          <el-col :span="1.5">
            <el-button
              type="primary"
              plain
              icon="el-icon-plus"
              size="mini"
              @click="handleAdd"
              v-hasPermi="['cooperate:construction:add']"
            >新增
            </el-button>
          </el-col>
          <right-toolbar :showSearch.sync="showSearch" @queryTable="getList"></right-toolbar>
        </el-row>

          <el-table :border="Global.tableShowBorder" v-loading="loading" :data="list">
            <el-table-column label="工程名称" align="center" prop="name"/>
            <el-table-column label="归属部门" align="center" prop="deptName"/>
            <el-table-column label="项目进度" align="center" prop="finishRate">
              <template slot-scope="{row}">
                <el-link v-if="ztFlag" :underline="false" type="primary" @click="handEidt(row,1)">{{row.finishRate}}</el-link>
                <span v-else>{{row.finishRate}}</span>
              </template>
            </el-table-column>
            <el-table-column label="项目状态" align="center" prop="status">
              <template slot-scope="{row}">
                <el-link v-if="ztFlag" :underline="false" type="primary" @click="handEidt(row,2)">
                  <dict-tag :options="dict.type.project_status" :value="row.status"/>
                </el-link>
                <dict-tag v-else :options="dict.type.project_status" :value="row.status"/>
              </template>
            </el-table-column>
            <el-table-column label="开始日期" align="center" prop="startDate"></el-table-column>
            <el-table-column label="结束日期" align="center" prop="endDate"></el-table-column>
            <el-table-column label="搁置原因" align="center" prop="shelvedReason" show-overflow-tooltip></el-table-column>
            <el-table-column label="终止原因" align="center" prop="abortedReason" show-overflow-tooltip></el-table-column>
            <el-table-column label="创建时间" align="center" prop="createTime"></el-table-column>
            <el-table-column label="操作" align="center" class-name="small-padding fixed-width" width="200">
              <template slot-scope="{row}">
                <el-button
                  size="mini"
                  type="text"
                  icon="el-icon-edit"
                  @click="handleUpdate(row)"
                  v-hasPermi="['cooperate:construction:edit']"
                >修改
                </el-button>
                <el-button
                  size="mini"
                  type="text"
                  icon="el-icon-delete"
                  @click="handleDelete(row,1)"
                  v-hasPermi="['cooperate:construction:remove']"
                >删除
                </el-button>
                <el-button
                  size="mini"
                  type="text"
                  @click="handleUpdateRecode(row)"
                  v-hasPermi="['cooperate:consReport:list']"
                >工程报告
                </el-button>
              </template>
            </el-table-column>
          </el-table>

          <pagination
            v-show="total>0"
            :total="total"
            :page.sync="queryParams.pageNum"
            :limit.sync="queryParams.pageSize"
            @pagination="getList"
          />
      </TableCard>
      <!-- 添加或修改对话框 -->
      <el-dialog :title="title" :visible.sync="open" width="80%" append-to-body>
        <div v-if="title == '施工工程报告列表'">
          <el-form :model="xgQueryParams" ref="xgQueryForm" size="small" :inline="true"  label-width="108px">
            <el-form-item label="选择时间" prop="dateRange">
              <el-date-picker
                v-model="xgQueryParams.dateRange"
                type="daterange"
                range-separator="-"
                start-placeholder="开始日期"
                value-format="yyyy-MM-dd"
                end-placeholder="结束日期">
              </el-date-picker>
            </el-form-item>
            <el-form-item>
              <el-button type="primary" icon="el-icon-search" size="mini" @click="xgHandleQuery">搜索</el-button>
              <el-button icon="el-icon-refresh" size="mini" @click="xgResetQuery">重置</el-button>
            </el-form-item>
          </el-form>
          <el-table :border="Global.tableShowBorder" v-loading="xgLoading" :data="xgRecod">
            <el-table-column label="报告日期" align="center" prop="reportDate" width="150px"/>
            <el-table-column label="汇报内容" align="center" prop="content"/>
            <el-table-column label="操作" align="center" class-name="small-padding fixed-width" width="250px">
              <template slot-scope="{row}">
                <el-button
                  size="mini"
                  type="text"
                  icon="el-icon-edit"
                  @click="handleDetail(row)"
                  v-hasPermi="['cooperate:consReport:query']"
                >查看详情
                </el-button>
                <el-button
                  size="mini"
                  type="text"
                  icon="el-icon-delete"
                  @click="handleDelete(row,2)"
                  v-hasPermi="['cooperate:consReport:remove']"
                >删除
                </el-button>
              </template>
            </el-table-column>
          </el-table>

          <pagination
            v-show="xgTotal>0"
            :total="xgTotal"
            :page.sync="xgQueryParams.pageNum"
            :limit.sync="xgQueryParams.pageSize"
            @pagination="listConsReport"
          />
        </div>
        <el-form v-else ref="form" :model="form" :rules="rules" label-width="120px">
          <div v-if="title == '修改项目状态' || title == '修改项目进度'">
            <div v-if="title == '修改项目状态'">
              <el-form-item label="状态" prop="status">
                <el-radio-group v-model="form.status">
                  <el-radio :label="Number(item.value)" v-for="(item,index) in dict.type.project_status" :key="index">{{item.label}}</el-radio>
                </el-radio-group>
              </el-form-item>
              <el-form-item label="搁置原因" prop="shelvedReason" v-if="form.status == 3">
                <el-input v-model="form.shelvedReason" type="textarea" :rows="6" placeholder="请输入搁置原因"/>
              </el-form-item>
              <el-form-item label="终止原因" prop="abortedReason" v-if="form.status == 4">
                <el-input v-model="form.abortedReason" type="textarea" :rows="6" placeholder="请输入终止原因"/>
              </el-form-item>
              <el-form-item label="结束日期" prop="endDate">
                <el-date-picker
                  v-model="form.endDate"
                  type="date" value-format="yyyy-MM-dd"
                  placeholder="选择日期">
                </el-date-picker>
              </el-form-item>
            </div>
            <div v-else>
              <el-form-item label="项目进度" prop="finishRate">
                <el-input-number v-model="form.finishRate" :precision="2" :step="1" :min="0" :max="100"></el-input-number>
              </el-form-item>
            </div>
          </div>
          <div v-else>
            <el-row>
              <el-col :span="24">
                <el-form-item label="工程名称" prop="name">
                  <el-input v-model="form.name" placeholder="请输入项目名称"/>
                </el-form-item>
              </el-col>
              <el-col :span="24">
                <el-form-item label="部门" prop="deptId">
                  <!-- :disable-branch-nodes="true" -->
                  <treeselect v-model="form.deptId" @select="bmChange"
                   :options="deptOptions" :disabled="form.id ? true : false" :show-count="true" placeholder="请选择部门"/>
                   <div><span style="color:red;">*</span>请选择类型为（部门）的数据</div>
                   <!-- <el-tree node-key="id" :data="deptOptions" :props="defaultProps" @node-click="handleNodeClick"></el-tree> -->
                </el-form-item>
              </el-col>
              <el-col :span="24">
                <el-form-item label="项目负责人" prop="mastersId">
                  <el-select v-model="form.mastersId" multiple filterable clearable placeholder="请选择项目负责人">
                    <el-option
                      v-for="item1 in userList"
                      :key="item1.userId"
                      :label="item1.nickName"
                      :value="item1.userId">
                    </el-option>
                  </el-select>
                </el-form-item>
              </el-col>
              <el-col :span="24">
                <el-form-item label="项目协作者" prop="cooperationsId">
                  <el-select v-model="form.cooperationsId" multiple filterable clearable placeholder="请选择项目协作者">
                    <el-option
                      v-for="item1 in userList"
                      :key="item1.userId"
                      :label="item1.nickName"
                      :value="item1.userId">
                    </el-option>
                  </el-select>
                </el-form-item>
              </el-col>
              <el-col :span="24">
                <el-form-item label="项目描述信息" prop="note">
                  <el-input v-model="form.note" type="textarea" :rows="6" placeholder="请输入项目描述信息"/>
                </el-form-item>
              </el-col>
              <el-col :span="24">
                <el-form-item label="时间选择" prop="dateRange">
                  <el-date-picker
                    v-model="form.dateRange"
                    value-format="yyyy-MM-dd"
                    type="daterange"
                    range-separator="-"
                    start-placeholder="开始日期"
                    end-placeholder="结束日期"
                  ></el-date-picker>
                </el-form-item>
              </el-col>
            </el-row>
            <el-form-item label="附件" prop="attachment"><el-button type="primary" icon="el-icon-plus" @click="addList('attachment')"></el-button></el-form-item>
            <el-row v-for="(item,index) in form.attachment" :key="index">
              <el-col :span="24">
                <el-form-item label="文件名称"
                :prop="'attachment.' + index + '.fileName'"
                :rules="{
                  required: true, message: '文件名称不能为空', trigger: 'blur'
                }">
                  <el-input v-model="item.fileName"  placeholder="请输入文件名称"/>
                </el-form-item>
              </el-col>
              <el-col :span="24">
                <!-- :prop="'attachment.' + index + '.url'"
                :rules="{
                  required: true, message: '文件路径不能为空', trigger: 'blur'
                }" -->
                <el-form-item label="文件路径"
                >
                  <div class="flex_hcneter">
                    <FileUpload :limit="1"  v-model="item.url"
                    :fileType="null" returnData="Array"
                    fileName="files" :fileData="{'bizType':'construction',}"
                    action="/oa-pcapi/cooperate/file/uploadAtt" btnName="选择"></FileUpload>
                    <el-button style="margin-left:10px;"
                    @click="delList(index,'attachment')" type="primary" icon="el-icon-minus"></el-button>
                  </div>
                </el-form-item>
              </el-col>
            </el-row>
          </div>
        </el-form>
        <div slot="footer" class="dialog-footer">
          <el-button type="primary" v-if="title != '施工工程报告列表'" @click="submitForm">确 定</el-button>
          <el-button @click="cancel">取 消</el-button>
        </div>
      </el-dialog>

      <el-dialog :title="xqTtitle" :visible.sync="xqOpen" width="80%" append-to-body>
        <el-form ref="form" :model="form" label-width="120px">
          <el-row class="diy-text-sm diy-leading-10" :gutter="10">
            <el-col :span="item.span || 12" v-for="(item,index) in formDetail" :key="index">
              <div class="flex_hcneter">
                <svg-icon icon-class="dot" class-name='diy-text-primary diy-mr-1'/>
                <div v-if="item.zidian && item.isCustom" class="flex_hcneter">
                  {{item.label}}：<dict-tag :options="dict.type[item.zidian]" :value="form[item.prop]"/>
                </div>
                <div v-else-if="item.prop == 'content' && item.isCustom" class="flex_hcneter">
                  {{item.label}}：<span v-html="form[item.prop]"></span>
                </div>
                <div v-else-if="item.prop == 'locations' && item.isCustom" class="flex_column flex_flex">
                  <h2>{{item.label}}</h2>
                  <div class="flex_flex">
                    <div v-for="(item1,index1) in form[item.prop]" :key="index1">
                      <el-col :span="12">
                        <div class="flex_hcneter">
                          <svg-icon icon-class="dot" class-name='diy-text-primary diy-mr-1'/>
                          <div>	经度：{{ item1.lon || '' }}</div>
                        </div>
                      </el-col>
                      <el-col :span="12">
                        <div class="flex_hcneter">
                          <svg-icon icon-class="dot" class-name='diy-text-primary diy-mr-1'/>
                          <div>	纬度：{{ item1.lon || '' }}</div>
                        </div>
                      </el-col>
                      <el-col :span="24">
                        <div class="flex_hcneter">
                          <svg-icon icon-class="dot" class-name='diy-text-primary diy-mr-1'/>
                          <div>	位置名称：{{ item1.location || '' }}</div>
                        </div>
                      </el-col>
                      <el-col :span="24">
                        <div class="flex_hcneter">
                          <svg-icon icon-class="dot" class-name='diy-text-primary diy-mr-1'/>
                          图片列表
                        </div>
                        <div style="padding-left:20px;">
                          <el-image  v-for="(item2,index2) in item1.imgList" :key="index2"
                            style="width: 100px; height: 100px;margin-right:10px;margin-bottom:15px;"
                            :src="item2"
                            :preview-src-list="[item2]">
                          </el-image>
                        </div>
                      </el-col>
                      <el-col :span="24">
                        <div class="flex_hcneter">
                          <svg-icon icon-class="dot" class-name='diy-text-primary diy-mr-1'/>
                          附件列表
                        </div>
                        <div style="padding-left:20px;">
                          <div v-for="(item2,index2) in item1.files" :key="index2">
                            <div class="flex_hcneter">
                              <svg-icon  icon-class="dot" class-name='diy-text-primary diy-mr-1'/>
                              文件名称：{{item2.fileName}}
                            </div>
                            <div class="flex_hcneter">
                              <svg-icon  icon-class="dot" class-name='diy-text-primary diy-mr-1'/>
                              文件路径：<el-link type="primary" @click="urlLink(item2.url)">{{item2.url}}</el-link>
                            </div>
                          </div>
                        </div>
                      </el-col>
                    </div>
                  </div>
                </div>
                <div v-else>{{item.label}}：{{ form[item.prop] }}{{ item.danwei || '' }}</div>
              </div>
            </el-col>
          </el-row>
        </el-form>
        <div slot="footer" class="dialog-footer">
          <el-button @click="xqOpen = false">取 消</el-button>
        </div>
      </el-dialog>
  </div>
</template>

<script>
import {listConstruction, getConstruction, addConstruction, updateConstruction, delConstruction,editFinishRate,editStatus,
  listConsReport,getConsReport,delConsReport,} from "@/api/collaWorryFree/constructWork";
import {deptUserList, } from "@/api/system/user";
import {getListByDeptId,} from "@/api/collaWorryFree/departProjectPerm";
import {listAllProjectType,} from "@/api/collaWorryFree/projectType";
import {treeselect,getUserDeptTree} from "@/api/system/dept";
import Treeselect from "@riophae/vue-treeselect";
import "@riophae/vue-treeselect/dist/vue-treeselect.css";
export default {
  name: "ConstructWork",
  dicts: ['project_status','project_edit_type',],
  components: {Treeselect},
  data() {
    return {
      formDetail:[
        {label:'报告日期',prop:'reportDate',},{label:'汇报内容',prop:'content',isCustom:true,span:24,},
        {label:'工程地点',prop:'locations',isCustom:true,span:24,},
      ],
      defaultProps: {
        children: 'children',
        label: 'label'
      },
      // 遮罩层
      loading: true,
      xgLoading: true,
      // 显示搜索条件
      showSearch: true,
      // 总条数
      total: 0,
      xgTotal: 0,
      // 表格数据
      list: [],
      xgRecod:[],
      // 弹出层标题
      title: "",
      xqTtitle: "",
      // 是否显示弹出层
      open: false,
      xqOpen: false,
      // 查询参数
      queryParams: {
        pageNum: 1,deptId:null,
        pageSize: 10,deptId:null,
        dateRange: [],status:null,
      },
      xgQueryParams: {
        pageNum: 1,
        pageSize: 10,dateRange: [],
      },
      // 表单参数
      form: {},
      // 表单校验
      rules: {
        name: [ {required: true, message: "项目名称不能为空", trigger: "blur"} ],
        typeId: [ {required: true, message: "项目类型不能为空", trigger: "change"} ],
        deptId: [ {required: true, message: "归属部门不能为空", trigger: "change"} ],
        mastersId: [ {required: true, message: "项目负责人不能为空", trigger: "change"} ],
        dateRange: [ {required: true, message: "时间选择不能为空", trigger: "change"} ],
        status: [ {required: true, message: "项目状态不能为空", trigger: "change"} ],
        finishRate: [ {required: true, message: "项目进度不能为空", trigger: "blur"} ],
      },
      deptOptions:[],//部门数据
      userList:[],//用户数据
      typeList:[],//根据部门获取类型数据
      typeAllList:[],//所有类型数据
      ztPermission:'cooperate:construction:edit',//修改状态权限和修改进度权限
      ztFlag:false,//修改状态权限和修改进度权限显示
      bumenObj:{},
    };
  },
  created() {
    const user = this.$store.state.user
    const permissions = user.permissions
    const flag = !!permissions.find(item => item == this.ztPermission)
    if (flag || permissions[0] == '*:*:*') this.ztFlag = true
    this.listAllProjectType()
    this.getList();
    this.getTreeselect()
  },
  methods: {
    urlLink(row){//链接跳转
      window.open(row)
    },
    handleDetail(e){//查看详情
      this.xqTtitle = '查看详情'
      this.xqOpen = true
      this.getConsReport(e.id)
    },
    async getConsReport(id){
      let res = await getConsReport(id)
      let data = res.data || {}
      let locations = data.locations || []
      this.form = {
        ...data,
        locations:locations.map(item=>{
          let photos = item.photos || ''
          return {
            ...item,imgList:photos ? photos.split(',') : [],
            files:item.files || [],
          }
        })
      }
      console.log('this.form',this.form)
    },
    getPopIniTime(){//初始化时间

    },
    handleUpdateRecode(row) {//施工工程报告列表
      this.open = true;
      this.title = '施工工程报告列表'
      this.xgQueryParams.consId = row.id
      this.xgResetQuery()
    },
    async listConsReport(){//查询施工报告
      this.xgLoading = true;
      let queryParams = {...this.xgQueryParams}
      let dateRange = queryParams.dateRange || []
      if(dateRange.length) {
        queryParams.startDate = dateRange[0]
        queryParams.endDate = dateRange[1]
      }
      delete queryParams.dateRange
      let res = await listConsReport(queryParams)
      let rows = res.rows || []
      this.xgRecod = rows
      this.xgTotal = res.total || 0
      this.xgLoading = false;
    },
    handleNodeClick(Node){//
      console.log(Node)
    },
    addList(ziduan){//添加列表
      this.form[ziduan].push({})
    },
    delList(index,ziduan){//删除列表
      this.form[ziduan].splice(index,1)
    },
    /** 查询部门下拉树结构 */
    getTreeselect() {
      getUserDeptTree().then(response => {
        let data = response.data || []
        this.deptOptions = [...data]
        this.getChart(this.deptOptions)
      });
    },
    getChart(data){//阶梯处理部门下拉数据
      data.forEach((item,index) => {
        item.id = item.deptId
        item.label = item.deptName + `(${item.deptType == 2 ? '部门' : (item.deptType == 3 ? '组别' : '公司')})`
        let children = item.children || []
        if(children.length ) {
          this.getChart(item.children)
        }else{
          delete item.children
        }
      });
    },
    bmChange(e){//部门改变
      console.log(e)
      this.bumenObj = {...e}
      if(e.id == this.form.deptId) return
      let form = {...this.form}
      this.getPdbumenType(e.deptType)
      form.typeId = null
      form.mastersId = null
      form.cooperationsId = null
      this.form = {...form}
      this.deptUserList(e.id)
      this.getListByDeptId(e.id)
    },
    getPdbumenType(deptType){//判断部门类型是否为部门选项
      let flag = deptType == 1 ? true : false
      if(flag) this.$modal.msgError("请选择名称右侧部门类型为（部门或者组别）的数据");
      return flag
    },
    async deptUserList(deptId){//获取部门下用户
      let res = await deptUserList({deptId})
      let data = res.data || []
      this.userList = data
    },
    async getListByDeptId(deptId){//获取部门下类型
      let res = await getListByDeptId({deptId})
      let data = res.data || []
      this.typeList = data
    },
    async listAllProjectType(){//查询所有项目类型列表
      let res = await listAllProjectType()
      let data = res.data || []
      this.typeAllList = data
    },
    /** 查询列表 */
    getList() {
      this.loading = true;
      let queryParams = {...this.queryParams}
      let dateRange = queryParams.dateRange || []
      if(dateRange.length) {
        queryParams.startDate = dateRange[0]
        queryParams.endDate = dateRange[1]
      }
      delete queryParams.dateRange
      listConstruction(queryParams).then(response => {
        this.list = response.rows;
        this.total = response.total;
        this.loading = false;
      });
    },
    // 取消按钮
    cancel() {
      this.open = false;
      // this.reset();
    },
    // 表单重置
    reset() {
      this.form = {attachment:[{}],};
      // this.resetForm("form");
      this.userList = []
      this.typeList = []
    },
    /** 搜索按钮操作 */
    handleQuery() {
      this.queryParams.pageNum = 1;
      this.getList();
    },
    /** 重置按钮操作 */
    resetQuery() {
      this.resetForm("queryForm");
      this.handleQuery();
    },
    /** 新增按钮操作 */
    handleAdd() {
      this.reset();
      this.open = true;
      this.title = "添加施工工程";
      this.getTreeselect()
    },
    /** 修改按钮操作 */
    handleUpdate(row) {
      this.reset();
      const id = row.id || this.ids
      getConstruction(id).then(response => {
        let data = response.data || {};
        let masters = data.masters || []
        let cooperations = data.cooperations || []
        this.form = {
          ...data,dateRange: data.startDate ? [data.startDate,data.endDate] : [],
          mastersId:masters.map(item=>item.userId),
          cooperationsId:cooperations.map(item=>item.userId),
          attachment:data.attachment || [],
        }
        this.open = true;
        this.title = "修改施工工程";
        this.deptUserList(data.deptId)
        this.getListByDeptId(data.deptId)
        this.getTreeselect()
      });
    },
    handEidt(row,type){//修改状态和进度
      this.reset();
      this.open = true;
      this.title = type == 2 ? '修改项目状态' : "修改项目进度";
      let form = {...this.form}
      form.id = row.id
      if(type == 2) {
        form.status = row.status
      }else{
        form.finishRate = row.finishRate
      }
      this.form = {...form}
      console.log('this.form',...this.form)
    },
    /** 提交按钮 */
    submitForm: function () {
      this.$refs["form"].validate(valid => {
        if (valid) {
          let form = {...this.form}
          if(this.title == '修改项目状态' || this.title == '修改项目进度'){
            let api = this.title == '修改项目状态' ? editStatus : editFinishRate
            api(form).then(response => {
              this.$modal.msgSuccess("操作成功");
              this.open = false;
              this.getList();
            });
          }else{
            let dateRange = form.dateRange || []
            if(dateRange.length) {
              form.startDate = dateRange[0]
              form.endDate = dateRange[1]
            }
            let flag = this.getPdbumenType(this.bumenObj.deptType)
            if(flag) return
            if (this.form.id != undefined) {
              updateConstruction(form).then(response => {
                this.$modal.msgSuccess("修改成功");
                this.open = false;
                this.getList();
              });
            } else {
              addConstruction(form).then(response => {
                this.$modal.msgSuccess("新增成功");
                this.open = false;
                this.getList();
              });
            }
          }
        }
      });
    },
    /** 删除按钮操作 */
    handleDelete(row,type) {
      const id = row.id || this.ids
      let api = type == 2 ? delConsReport : delConstruction
      this.$modal.confirm('是否确认删除该数据项？').then(function () {
          return api(id);
      }).then(() => {
          if(type === 1) this.getList();
          if(type === 2) this.listConsReport();
          this.$modal.msgSuccess("删除成功");
      }).catch(() => {
      });
    },
    /** 搜索按钮操作 */
    xgHandleQuery() {
      this.xgQueryParams.pageNum = 1;
      this.listConsReport();
    },
    /** 重置按钮操作 */
    xgResetQuery() {
      this.resetForm("xgQueryForm");
      this.xgHandleQuery();
    },
  }
};
</script>
